package mediaserver.managementserver;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.Socket;
import java.util.Scanner;


public class MediaManagementServerRunnable implements Runnable {

	private Socket client;
	
	public MediaManagementServerRunnable(Socket client){
		this.client = client;
	}
	
	
	@Override
	public void run(){
		try{
			Scanner in = new Scanner( client.getInputStream() ); 
			//PrintWriter out = new PrintWriter( client.getOutputStream(), true ); 
			while(in.hasNextLine()){
			System.out.println(in.nextLine());
			}
		}catch(IOException e){
			System.out.println(e);
		}
	}
}
